Optimal. Leaf size=74 \[ -\frac {2 f \tanh ^{-1}\left (\frac {b-a \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2+b^2}}\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {e+f x}{b d (a+b \sinh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {5464, 2660, 618, 204} \[ -\frac {2 f \tanh ^{-1}\left (\frac {b-a \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2+b^2}}\right )}{b d^2 \sqrt {a^2+b^2}}-\frac {e+f x}{b d (a+b \sinh (c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 2660
Rule 5464
Rubi steps
\begin {align*} \int \frac {(e+f x) \cosh (c+d x)}{(a+b \sinh (c+d x))^2} \, dx &=-\frac {e+f x}{b d (a+b \sinh (c+d x))}+\frac {f \int \frac {1}{a+b \sinh (c+d x)} \, dx}{b d}\\ &=-\frac {e+f x}{b d (a+b \sinh (c+d x))}-\frac {(2 i f) \operatorname {Subst}\left (\int \frac {1}{a-2 i b x+a x^2} \, dx,x,\tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{b d^2}\\ &=-\frac {e+f x}{b d (a+b \sinh (c+d x))}+\frac {(4 i f) \operatorname {Subst}\left (\int \frac {1}{-4 \left (a^2+b^2\right )-x^2} \, dx,x,-2 i b+2 a \tan \left (\frac {1}{2} (i c+i d x)\right )\right )}{b d^2}\\ &=-\frac {2 f \tanh ^{-1}\left (\frac {b-a \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {a^2+b^2}}\right )}{b \sqrt {a^2+b^2} d^2}-\frac {e+f x}{b d (a+b \sinh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.45, size = 78, normalized size = 1.05 \[ \frac {\frac {2 f \tan ^{-1}\left (\frac {b-a \tanh \left (\frac {1}{2} (c+d x)\right )}{\sqrt {-a^2-b^2}}\right )}{\sqrt {-a^2-b^2}}-\frac {d (e+f x)}{a+b \sinh (c+d x)}}{b d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.55, size = 411, normalized size = 5.55 \[ \frac {{\left (b f \cosh \left (d x + c\right )^{2} + b f \sinh \left (d x + c\right )^{2} + 2 \, a f \cosh \left (d x + c\right ) - b f + 2 \, {\left (b f \cosh \left (d x + c\right ) + a f\right )} \sinh \left (d x + c\right )\right )} \sqrt {a^{2} + b^{2}} \log \left (\frac {b^{2} \cosh \left (d x + c\right )^{2} + b^{2} \sinh \left (d x + c\right )^{2} + 2 \, a b \cosh \left (d x + c\right ) + 2 \, a^{2} + b^{2} + 2 \, {\left (b^{2} \cosh \left (d x + c\right ) + a b\right )} \sinh \left (d x + c\right ) - 2 \, \sqrt {a^{2} + b^{2}} {\left (b \cosh \left (d x + c\right ) + b \sinh \left (d x + c\right ) + a\right )}}{b \cosh \left (d x + c\right )^{2} + b \sinh \left (d x + c\right )^{2} + 2 \, a \cosh \left (d x + c\right ) + 2 \, {\left (b \cosh \left (d x + c\right ) + a\right )} \sinh \left (d x + c\right ) - b}\right ) - 2 \, {\left ({\left (a^{2} + b^{2}\right )} d f x + {\left (a^{2} + b^{2}\right )} d e\right )} \cosh \left (d x + c\right ) - 2 \, {\left ({\left (a^{2} + b^{2}\right )} d f x + {\left (a^{2} + b^{2}\right )} d e\right )} \sinh \left (d x + c\right )}{{\left (a^{2} b^{2} + b^{4}\right )} d^{2} \cosh \left (d x + c\right )^{2} + {\left (a^{2} b^{2} + b^{4}\right )} d^{2} \sinh \left (d x + c\right )^{2} + 2 \, {\left (a^{3} b + a b^{3}\right )} d^{2} \cosh \left (d x + c\right ) - {\left (a^{2} b^{2} + b^{4}\right )} d^{2} + 2 \, {\left ({\left (a^{2} b^{2} + b^{4}\right )} d^{2} \cosh \left (d x + c\right ) + {\left (a^{3} b + a b^{3}\right )} d^{2}\right )} \sinh \left (d x + c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (f x + e\right )} \cosh \left (d x + c\right )}{{\left (b \sinh \left (d x + c\right ) + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.37, size = 164, normalized size = 2.22 \[ -\frac {2 \left (f x +e \right ) {\mathrm e}^{d x +c}}{b d \left (b \,{\mathrm e}^{2 d x +2 c}+2 a \,{\mathrm e}^{d x +c}-b \right )}+\frac {f \ln \left ({\mathrm e}^{d x +c}+\frac {a \sqrt {a^{2}+b^{2}}-a^{2}-b^{2}}{\sqrt {a^{2}+b^{2}}\, b}\right )}{\sqrt {a^{2}+b^{2}}\, d^{2} b}-\frac {f \ln \left ({\mathrm e}^{d x +c}+\frac {a \sqrt {a^{2}+b^{2}}+a^{2}+b^{2}}{\sqrt {a^{2}+b^{2}}\, b}\right )}{\sqrt {a^{2}+b^{2}}\, d^{2} b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.52, size = 157, normalized size = 2.12 \[ -f {\left (\frac {2 \, x e^{\left (d x + c\right )}}{b^{2} d e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b d e^{\left (d x + c\right )} - b^{2} d} - \frac {\log \left (\frac {b e^{\left (d x + c\right )} + a - \sqrt {a^{2} + b^{2}}}{b e^{\left (d x + c\right )} + a + \sqrt {a^{2} + b^{2}}}\right )}{\sqrt {a^{2} + b^{2}} b d^{2}}\right )} - \frac {2 \, e e^{\left (-d x - c\right )}}{{\left (2 \, a b e^{\left (-d x - c\right )} - b^{2} e^{\left (-2 \, d x - 2 \, c\right )} + b^{2}\right )} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.56, size = 199, normalized size = 2.69 \[ \frac {f\,\ln \left (\frac {2\,f\,\left (b-a\,{\mathrm {e}}^{c+d\,x}\right )}{b^2\,d\,\sqrt {a^2+b^2}}-\frac {2\,f\,{\mathrm {e}}^{c+d\,x}}{b^2\,d}\right )}{b\,d^2\,\sqrt {a^2+b^2}}-\frac {f\,\ln \left (-\frac {2\,f\,{\mathrm {e}}^{c+d\,x}}{b^2\,d}-\frac {2\,f\,\left (b-a\,{\mathrm {e}}^{c+d\,x}\right )}{b^2\,d\,\sqrt {a^2+b^2}}\right )}{b\,d^2\,\sqrt {a^2+b^2}}-\frac {2\,{\mathrm {e}}^{c+d\,x}\,\left (a^2\,e+b^2\,e+a^2\,f\,x+b^2\,f\,x\right )}{d\,\left (a^2\,b+b^3\right )\,\left (2\,a\,{\mathrm {e}}^{c+d\,x}-b+b\,{\mathrm {e}}^{2\,c+2\,d\,x}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________